﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
/// Summary description for OrderProduct
/// </summary>
public class OrderProduct
{
    private string orderProductID;
    private string proName;
    private string img;
    private int amount;
    private float price;

	public OrderProduct()
	{
        orderProductID = "";
        proName = "";
        img = "";
        amount = 1;
        price = 0;
		//
		// TODO: Add constructor logic here
		//
	}

    public string OrderProductID
    {
        get
        {
            return orderProductID;
        }
        set
        {
            orderProductID = value;
        }
    }
    public string ProName
    {
        get
        {
            return proName;
        }
        set
        {
            proName = value;
        }
    }

    public int Amount
    {
        get
        {
            return amount;
        }
        set
        {
            amount = value;
        }
    }
    public float Price
    {
        get
        {
            return price;
        }
        set
        {
            price = value;
        }
    }
    public string Image
    {
        get
        {
            return img;
        }
        set
        {
            img = value;
        }
    }

    public float Summary
    {
        get
        {
            return price * amount;
        }
    }
}
